<script type="text/javascript" src="/public/index/js/jquery-1.6.2.min.js"></script>
<script>
    function changetime(){
        var ary = Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
        var Timehtml = document.getElementById('CurrentTime');
        var date = new Date();
        Timehtml.innerHTML = ''+date.toLocaleString();
    }
    window.onload = function(){
        changetime();
        setInterval(changetime,1000);
    }
</script>
<div class="top">
    [uname] <span style="font-size: 12px;color: #666666">lv:[lv]</lv></span>
    <span style="font-size: 12px;color: #999999">灵石:[ls] 极品:[jp]</span>
    <span id="CurrentTime"><?php echo date('Y-m-d H:i:s') ?></span>
</div>